from rpy import r

import rpy

import opsR

class LM:
    def __init__(self,x,y):
        self.x=x
        self.y=y
        r.assign('x',x)
        r.assign('y',y)
        r('m=lm(y~x)')
        return None

    def summary(self):
        return opsR.summary('m')
    
    def print_(self):
        return opsR.print_('m')
    
    def plots(self):
        return [
            self.residualsVsFitted,
            self.normalQQ,
            self.scaleLocation,
            self.residualsVsLeverage,
            ]
    def residualsVsFitted(self):
        pass
    def normalQQ(self):
        pass
    def scaleLocation(self):
        pass
    def residualsVsLeverage(self):
        pass
    
